﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Xml;
using XmlDB;

namespace PlaceFinder.DAL.Common
{
    public class DAOBase<T>:IDAOBase<T> where T:new()
    {
        protected XmlDB<T> _xmlDB = new XmlDB<T>(Utils.GetXmlPath<T>());

        #region IDAOBase<T> Members

        public List<T> GetAll()
        {
            return _xmlDB.GetAll();
        }

        #endregion
    }
}
